package org.example.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("spu")
public class SysSpu {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;

    private String subtitle;

    private Integer categoryId;

    private Boolean online;

    private Date createTime;

    private Date updateTime;

    private Date deleteTime;

    /**
     * 文本型价格，有时候SPU需要展示的是一个范围，或者自定义平均价格
     */
    private String price;

    /**
     * 某种规格可以直接附加单品图片
     */
    private Integer sketchSpecId;

    /**
     * 默认选中的sku
     */
    private Integer defaultSkuId;

    private String img;

    private String discountPrice;

    private String description;

    private String tags;

    private String spuThemeImg;

    private String forThemeImg;

    /**
     * 是否删除  -1：已删除  0：正常
     */
    private Byte delFlag;

    @TableField(exist = false)
    private List<SpecKey> specKeyList;
}